package com.example.Holo.library.viewfinder;

import android.view.View;
import android.widget.*;

public final class ViewFinder implements IViewFinder {

    private final View view;

    public ViewFinder(View view) {
        this.view = view;
    }

    @Override
    public Button findButton(int id) {
        return (Button) view.findViewById(id);
    }

    @Override
    public EditText findEditText(int id) {
        return (EditText) view.findViewById(id);
    }

    @Override
    public ListView findListView(int id) {
        return (ListView) view.findViewById(id);
    }

    @Override
    public Spinner findSpinner(int id) {
        return (Spinner) view.findViewById(id);
    }

    @Override
    public TextView findTextView(int id) {
        return (TextView) view.findViewById(id);
    }

}
